import request from "@/utils/request"; //导入封装请求的js文件

export function getContent(params) {
  return request({
    url: "/home/content",
    method: "get",
    data: params,
  });
}
//获取首页商品分类
export function getListAndAccount(params) {
    return request({
      url: `/home/getCategoryAndAccount`,
      method: "get",
      data: params,
    });
  }
//获取商家排行榜
export function storeTop5(params) {
  return request({
    url: "/home/storeTop",
    method: "get",
    data: params,
  });
}
//获取广告
export function getAllAd(params) {
  return request({
    url: "/home/getAllAd",
    method: "get",
    params: params,
    headers:{
      showLoading:false
    }
  });
}
  //获取首页公告
  export function selectSystemSettingInfoByName (params) {
    return request({
      url: '/UmsAdminConfig/selectSystemSettingInfoByName',
      method: 'GET',
      params:params
    })
  }
  //首页搜索关键字商品
  export function selectProductName (params) {
    return request({
      url: '/pmsProduct/selectProductName',
      method: 'GET',
      params:params,
      headers:{
        showLoading:false
      }
    })
  }
  //首页搜索关键字店铺
  export function selectStoreName (params) {
    return request({
      url: '/pmsStore/selectStoreName',
      method: 'GET',
      params:params,
      headers:{
        showLoading:false
      }
    })
  }
  //获取特价清仓
  export function selectSpecialProduct (params) {
    return request({
      url: '/pmsProductSpecialSale/selectSpecialProduct',
      method: 'GET',
    })
  }
  //获取首页商品分类
  export function selectCategorysY(params) {
    return request({
      url: '/umsAdminCategoryIndexController/selectCategory',
      method: 'get',
      params:params
    })
  }